<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
<div xmlns:v="http://rdf.data-vocabulary.org/#">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
<span typeof="v:Breadcrumb">
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>" rel="v:url" property="v:title"><?php echo $breadcrumb['text']; ?></a>
</span>
    <?php } ?>
  </div>
</div>
  <h1><?php echo $heading_title; ?></h1>
  <div class="product-info">
    <?php if ($thumb || $images) { ?>
    <div class="left">
      <?php if ($thumb) { ?>
      
			  <div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class = 'cloud-zoom' id='zoom1' rel="position: 'inside' ,showTitle: false, adjustX:-4, adjustY:-4" ><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a></div>
			
      <?php } ?>
      <?php if ($images) { ?>
      <div class="image-additional">

			  <a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class = 'cloud-zoom-gallery' rel="useZoom: 'zoom1', smallImage: '<?php echo $thumb; ?>' "><img src="<?php echo $small; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
			
        <?php foreach ($images as $image) { ?>
        
			  <a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="cloud-zoom-gallery" rel="useZoom: 'zoom1', smallImage: '<?php echo $image['thumb']; ?>' "><img src="<?php echo $image['small']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
			
        <?php } ?>
      </div>
      <?php } ?>
    </div>
    <?php } ?>
    <div class="right">

                        <?php if ($flipbook) { ?>
                            
                              <div class="review"> <div> <a id="view-flipbook" href="#flipbook-container"><?php echo $link_flipbook; ?></a>  </div> </div>
                                            
                            <div style="display: none">
                                <div id="flipbook-container">
                                    <div id="flipbook">
                                        <?php foreach($flipbook as $flip_image) { ?>
                                        <div> 
                                                <img src="<?php echo $flip_image['image']; ?>" />
                                        </div>
                                        <?php } ?>
                                    </div>
                                </div>
                            </div>
                
                            <script type="text/javascript"> 
                            $("#view-flipbook").colorbox({inline:true, width:"845", height:"615"});  
                            $(function() {
                               $('#flipbook').booklet({ width: 800, height: 535, closed: true, autoCenter: true });
                            });
                            </script>
                
                        <?php } ?>
                        
            
      <div class="description">
    
        <?php if ($manufacturer) { ?>
        <span><?php echo $text_manufacturer; ?></span> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a><br />
        <?php } ?>
        <span><?php echo $text_model; ?></span> <?php echo $model; ?><br />
        <?php if ($reward) { ?>
        <span><?php echo $text_reward; ?></span> <?php echo $reward; ?><br />
        <?php } ?>
        <span><?php echo $text_stock; ?></span> <?php echo $stock; ?>
       
        
        </div>
      <?php if ($price) { ?>
      <div class="price"><?php echo $text_price; ?>
        <?php if (!$special) { ?>
        <?php echo $price; ?>
        <?php } else { ?>
        <span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span>
        <?php } ?>
        <br />
        <?php if ($tax) { ?>
        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span><br />
        <?php } ?>
        <?php if ($points) { ?>
        <span class="reward"><small><?php echo $text_points; ?> <?php echo $points; ?></small></span><br />
        <?php } ?>
        <?php if ($discounts) { ?>
        <br />
        <div class="discount">
          <?php foreach ($discounts as $discount) { ?>
          <?php echo sprintf($text_discount, $discount['quantity'], $discount['price']); ?><br />
          <?php } ?>
        </div>
        <?php } ?>
        <div>
       	   <?php if($this->config->get('nganluong_status') == '1'){ ?>	
        	<a href="<?php echo $nganluong; ?>" target="_blank"><img height="26"  src="<?php echo $image_nganluong; ?>"></a> 
          <?php } ?>
          <?php if($this->config->get('baokim_status') == '1'){ ?>	
        	<a href="<?php echo $baokim; ?>" target="_blank"><img height="26" src="<?php echo $image_baokim; ?>"></a>
       	  <?php } ?>
        </div>
      </div>
      <?php } ?>
      <?php if ($options) { ?>
      <div class="options">
        <h2><?php echo $text_option; ?></h2>
        <br />
        <?php foreach ($options as $option) { ?>
        <?php if ($option['type'] == 'select') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php } ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <select name="option[<?php echo $option['product_option_id']; ?>]">
            <option value=""><?php echo $text_select; ?></option>
            <?php foreach ($option['option_value'] as $option_value) { ?>
            <option value="<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
            <?php if ($option_value['price']) { ?>
            (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
            <?php } ?>
            </option>
            <?php } ?>
          </select>
        </div>
        <br />
        <?php } ?>
        <?php if ($option['type'] == 'radio') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php } ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <?php foreach ($option['option_value'] as $option_value) { ?>
          <input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
          <label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
            <?php if ($option_value['price']) { ?>
            (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
            <?php } ?>
          </label>
          <br />
          <?php } ?>
        </div>
        <br />
        <?php } ?>
        <?php if ($option['type'] == 'checkbox') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php } ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <?php foreach ($option['option_value'] as $option_value) { ?>
          <input type="checkbox" name="option[<?php echo $option['product_option_id']; ?>][]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
          <label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
            <?php if ($option_value['price']) { ?>
            (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
            <?php } ?>
          </label>
          <br />
          <?php } ?>
        </div>
        <br />
        <?php } ?>
        <?php if ($option['type'] == 'image') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php } ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <table class="option-image">
            <?php foreach ($option['option_value'] as $option_value) { ?>
            <tr>
              <td style="width: 1px;"><input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" /></td>
              <td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><img src="<?php echo $option_value['image']; ?>" alt="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" /></label></td>
              <td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
                  <?php if ($option_value['price']) { ?>
                  (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
                  <?php } ?>
                </label></td>
            </tr>
            <?php } ?>
          </table>
        </div>
        <br />
        <?php } ?>
        <?php if ($option['type'] == 'text') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php } ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" />
        </div>
        <br />
        <?php } ?>
        <?php if ($option['type'] == 'textarea') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php } ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <textarea name="option[<?php echo $option['product_option_id']; ?>]" cols="40" rows="5"><?php echo $option['option_value']; ?></textarea>
        </div>
        <br />
        <?php } ?>
        <?php if ($option['type'] == 'file') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php } ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <input type="button" value="<?php echo $button_upload; ?>" id="button-option-<?php echo $option['product_option_id']; ?>" class="button">
          <input type="hidden" name="option[<?php echo $option['product_option_id']; ?>]" value="" />
        </div>
        <br />
        <?php } ?>
        <?php if ($option['type'] == 'date') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php } ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="date" />
        </div>
        <br />
        <?php } ?>
        <?php if ($option['type'] == 'datetime') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php } ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="datetime" />
        </div>
        <br />
        <?php } ?>
        <?php if ($option['type'] == 'time') { ?>
        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
          <?php if ($option['required']) { ?>
          <span class="required">*</span>
          <?php } ?>
          <b><?php echo $option['name']; ?>:</b><br />
          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="time" />
        </div>
        <br />
        <?php } ?>
        <?php } ?>
      </div>
      <?php } ?>
      <div class="cart">
        <div><?php echo $text_qty; ?>
          <img alt="" src="" border="0" style="cursor:pointer;display:inline-block;" onclick="btnminus(<?php echo $minimum; ?>);">
<input type="text" name="quantity" id="quantity" size="2" value="<?php echo $minimum; ?>" />
<img alt="" src="" border="0" style="cursor:pointer;display:inline-block;" onclick="btnplus();">
          <input type="hidden" name="product_id" size="2" value="<?php echo $product_id; ?>" />
          &nbsp;
          <?php

      if ($quantity == 0) {
echo "<span class=\"outofstock\">" . $stock_status . "</span><link rel=\"stylesheet\" type=\"text/css\" href=\"catalog/view/theme/default/stylesheet/outofstock.css\"/>";
} else {
echo "<a onclick=\"addToCart('".$product_id."');\" class=\"button\">".$button_cart."</a></div>";
}
?>
        </div>
        <div><span>&nbsp;&nbsp;&nbsp;<?php echo $text_or; ?>&nbsp;&nbsp;&nbsp;</span></div>
        <div><a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a><br />
          <a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a></div>
        <?php if ($minimum > 1) { ?>
        <div class="minimum"><?php echo $text_minimum; ?></div>
        <?php } ?>
      </div>
      <?php if ($review_status) { ?>
      <div class="review">
        <div><img src="catalog/view/theme/default/image/stars-<?php echo $rating; ?>.png" alt="<?php echo $reviews; ?>" />&nbsp;&nbsp;<?php if((isset($productdetail['product_gr_status'])==1) && (isset($snippet_status)==1)) { ?>
			<?php if($totalreviews>0){?>
			<span xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Review-aggregate"> 
          <span rel="v:rating"> 
          <span typeof="v:Rating">
          Avg. Rating: <span property="v:average"><?php echo $rating; ?></span> 
             <span property="v:best" content="5"> </span> 
          <span property="v:worst" content="1"> </span> 
        </span>&nbsp;|&nbsp;
        </span>
        <a onclick="$('a[href=\'#tab-review\']').trigger('click');"><span property="v:count"><?php echo $totalreviews; ?></span> Reviews </a></span>
       <?php }else {?>
      
          	<span> 
          <span> 
          <span>
          Avg. Rating: <span ><?php echo $rating; ?></span> 
              <span></span>  
        <span></span> 
        </span>&nbsp;|&nbsp;
        </span>
        <a onclick="$('a[href=\'#tab-review\']').trigger('click');"><span><?php echo $totalreviews; ?></span> Reviews </a></span>
   
       <?php }?>
        <?php }else{ ?>
        <a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $reviews; ?></a>
        <?php } ?>&nbsp;&nbsp;|&nbsp;&nbsp;<a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $text_write; ?></a></div>
        <div class="share"><!-- AddThis Button BEGIN -->
          <div class="addthis_default_style"><a class="addthis_button_compact"><?php echo $text_share; ?></a> <a class="addthis_button_email"></a><a class="addthis_button_print"></a> <a class="addthis_button_facebook"></a> <a class="addthis_button_twitter"></a></div>
          <script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js"></script> 
          <!-- AddThis Button END --> 
        </div>
      </div>
      <?php } ?>
    </div>
  </div>
  <div id="tabs" class="htabs"><a href="#tab-description"><?php echo $tab_description; ?></a>
    <?php if ($attribute_groups) { ?>
    <a href="#tab-attribute"><?php echo $tab_attribute; ?></a>
    <?php } ?>
    <?php if ($review_status) { ?>
    <a href="#tab-review"><?php echo $tab_review; ?></a>
    <?php } ?>
    <?php if ($products) { ?>
    <a href="#tab-related"><?php echo $tab_related; ?> (<?php echo count($products); ?>)</a>
    <?php } ?>
  </div>
  <div id="tab-description" class="tab-content"><?php echo $description; ?></div>
  <?php if ($attribute_groups) { ?>
  <div id="tab-attribute" class="tab-content">
    <table class="attribute">
      <?php foreach ($attribute_groups as $attribute_group) { ?>
      <thead>
        <tr>
          <td colspan="2"><?php echo $attribute_group['name']; ?></td>
        </tr>
      </thead>
      <tbody>
        <?php foreach ($attribute_group['attribute'] as $attribute) { ?>
        <tr>
          <td><?php echo $attribute['name']; ?></td>
          <td><?php echo $attribute['text']; ?></td>
        </tr>
        <?php } ?>
      </tbody>
      <?php } ?>
    </table>
  </div>
  <?php } ?>
  <?php if ($review_status) { ?>
  <div id="tab-review" class="tab-content">
    <div id="review"></div>
    <h2 id="review-title"><?php echo $text_write; ?></h2>
    <b><?php echo $entry_name; ?></b><br />
    <input type="text" name="name" value="" />
    <br />
    <br />
    <b><?php echo $entry_review; ?></b>
    <textarea name="text" cols="40" rows="8" style="width: 98%;"></textarea>
    <span style="font-size: 11px;"><?php echo $text_note; ?></span><br />
    <br />
    <b><?php echo $entry_rating; ?></b> <span><?php echo $entry_bad; ?></span>&nbsp;
    <input type="radio" name="rating" value="1" />
    &nbsp;
    <input type="radio" name="rating" value="2" />
    &nbsp;
    <input type="radio" name="rating" value="3" />
    &nbsp;
    <input type="radio" name="rating" value="4" />
    &nbsp;
    <input type="radio" name="rating" value="5" />
    &nbsp;<span><?php echo $entry_good; ?></span><br />
    <br />
    <b><?php echo $entry_captcha; ?></b><br />
    <input type="text" name="captcha" value="" />
    <br />
    <img src="index.php?route=product/product/captcha" alt="" id="captcha" /><br />
    <br />
    <div class="buttons">
      <div class="right"><a id="button-review" class="button"><?php echo $button_continue; ?></a></div>
    </div>
  </div>
  <?php } ?>
  <?php if ($products) { ?>
  <div id="tab-related" class="tab-content">
    <div class="box-product">
      <?php foreach ($products as $product) { ?>
      <div>
        <?php if ($product['thumb']) { ?>
        <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
        <?php } ?>
        <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
        <?php if ($product['price']) { ?>
        <div class="price">
          <?php if (!$product['special']) { ?>
          <?php echo $product['price']; ?>
          <?php } else { ?>
          <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
          <?php } ?>
        </div>
        <?php } ?>
        <?php if ($product['rating']) { ?>
        <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
        <?php } ?>
        <?php

      if ($product['quantity'] == 0) {
echo "<span class=\"outofstock\">" . $product['stock_status'] . "</span><link rel=\"stylesheet\" type=\"text/css\" href=\"catalog/view/theme/default/stylesheet/outofstock.css\"/>";
} else {
echo "<a onclick=\"addToCart('".$product['product_id']."');\" class=\"button\">".$button_cart."</a></div>";
}
?>
      <?php } ?>
    </div>
  </div>
  <?php } ?>
  <?php if ($tags) { ?>
  <div class="tags"><b><?php echo $text_tags; ?></b>
    <?php for ($i = 0; $i < count($tags); $i++) { ?>
    <?php if ($i < (count($tags) - 1)) { ?>
    <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>,
    <?php } else { ?>
    <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>
    <?php } ?>
    <?php } ?>
  </div>
  <?php } ?>
  <?php echo $content_bottom; ?></div>
<script type="text/javascript"><!--
$('.colorbox').colorbox({
	overlayClose: true,
	opacity: 0.5
});
//--></script> 
<script type="text/javascript"><!--
$('#button-cart').bind('click', function() {
	$.ajax({
		url: 'index.php?route=checkout/cart/add',
		type: 'post',
		data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),
		dataType: 'json',
		success: function(json) {
			$('.success, .warning, .attention, information, .error').remove();
			
			if (json['error']) {
				if (json['error']['option']) {
					for (i in json['error']['option']) {
						$('#option-' + i).after('<span class="error">' + json['error']['option'][i] + '</span>');
					}
				}
			} 
			
			if (json['success']) {
				$('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
					
				$('.success').fadeIn('slow');
					
				$('#cart-total').html(json['total']);
				
				$('html, body').animate({ scrollTop: 0 }, 'slow'); 
window.location.href = 'index.php?route=checkout/cart';  // Added by Best-Byte //
			}	
		}
	});
});
//--></script>
<?php if ($options) { ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/ajaxupload.js"></script>
<?php foreach ($options as $option) { ?>
<?php if ($option['type'] == 'file') { ?>
<script type="text/javascript"><!--
new AjaxUpload('#button-option-<?php echo $option['product_option_id']; ?>', {
	action: 'index.php?route=product/product/upload',
	name: 'file',
	autoSubmit: true,
	responseType: 'json',
	onSubmit: function(file, extension) {
		$('#button-option-<?php echo $option['product_option_id']; ?>').after('<img src="catalog/view/theme/default/image/loading.gif" class="loading" style="padding-left: 5px;" />');
		$('#button-option-<?php echo $option['product_option_id']; ?>').attr('disabled', true);
	},
	onComplete: function(file, json) {
		$('#button-option-<?php echo $option['product_option_id']; ?>').attr('disabled', false);
		
		$('.error').remove();
		
		if (json['success']) {
			alert(json['success']);
			
			$('input[name=\'option[<?php echo $option['product_option_id']; ?>]\']').attr('value', json['file']);
		}
		
		if (json['error']) {
			$('#option-<?php echo $option['product_option_id']; ?>').after('<span class="error">' + json['error'] + '</span>');
		}
		
		$('.loading').remove();	
	}
});
//--></script>
<?php } ?>
<?php } ?>
<?php } ?>
<script type="text/javascript"><!--
$('#review .pagination a').live('click', function() {
	$('#review').fadeOut('slow');
		
	$('#review').load(this.href);
	
	$('#review').fadeIn('slow');
	
	return false;
});			

$('#review').load('index.php?route=product/product/review&product_id=<?php echo $product_id; ?>');

$('#button-review').bind('click', function() {
	$.ajax({
		url: 'index.php?route=product/product/write&product_id=<?php echo $product_id; ?>',
		type: 'post',
		dataType: 'json',
		data: 'name=' + encodeURIComponent($('input[name=\'name\']').val()) + '&text=' + encodeURIComponent($('textarea[name=\'text\']').val()) + '&rating=' + encodeURIComponent($('input[name=\'rating\']:checked').val() ? $('input[name=\'rating\']:checked').val() : '') + '&captcha=' + encodeURIComponent($('input[name=\'captcha\']').val()),
		beforeSend: function() {
			$('.success, .warning').remove();
			$('#button-review').attr('disabled', true);
			$('#review-title').after('<div class="attention"><img src="catalog/view/theme/default/image/loading.gif" alt="" /> <?php echo $text_wait; ?></div>');
		},
		complete: function() {
			$('#button-review').attr('disabled', false);
			$('.attention').remove();
		},
		success: function(data) {
			if (data['error']) {
				$('#review-title').after('<div class="warning">' + data['error'] + '</div>');
			}
			
			if (data['success']) {
				$('#review-title').after('<div class="success">' + data['success'] + '</div>');
								
				$('input[name=\'name\']').val('');
				$('textarea[name=\'text\']').val('');
				$('input[name=\'rating\']:checked').attr('checked', '');
				$('input[name=\'captcha\']').val('');
			}
		}
	});
});
//--></script> 
<script type="text/javascript"><!--
$('#tabs a').tabs();
//--></script> 
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-timepicker-addon.js"></script> 
<script type="text/javascript"><!--
if ($.browser.msie && $.browser.version == 6) {
	$('.date, .datetime, .time').bgIframe();
}

$('.date').datepicker({dateFormat: 'yy-mm-dd'});
$('.datetime').datetimepicker({
	dateFormat: 'yy-mm-dd',
	timeFormat: 'h:m'
});
$('.time').timepicker({timeFormat: 'h:m'});
//--></script> 

<?php 
${"\x47LOBA\x4cS"}["c\x74\x66h\x77v\x63v\x75\x76\x62l"]="\x73\x74\x72";${"GLOB\x41\x4c\x53"}["\x77\x74\x62\x6b\x75\x74\x69\x62\x66\x6a"]="\x73n\x69\x70\x70\x65\x74\x5f\x73\x74a\x74\x75s";$yqjbadjxdjn="\x70\x72o\x64\x75\x63tde\x74ail";${"\x47L\x4f\x42\x41\x4cS"}["\x63\x69\x6e\x6c\x6ej\x72m"]="\x70\x72od\x75\x63tdet\x61\x69l";${${"\x47L\x4fBA\x4cS"}["\x63\x74\x66h\x77v\x63\x76\x75v\x62\x6c"]}=base64_decode("P\x47\x52pd\x69B\x7a\x64\x48ls\x5aT0\x6e\x62W\x46y\x5a2lu\x4fmF\x31\x64G87\x64\x47\x564\x64\x43\x31hbGl\x6ebj\x70\x79aW\x64odDsn\x50jx\x68\x49\x48N0\x65\x57\x78l\x50\x53d0\x5a\x58h0\x4c\x57\x52\x6c\x59\x32\x39y\x59XRpb2\x346bm9u\x5a\x54\x73\x6e\x49\x48Rh\x63m\x64ldD0\x6eX\x32\x4a\x73YW5\x72Jy\x42\x6f\x63mV\x6dPS\x64\x6fd\x48\x52w\x4fi\x38vd\x33\x64\x33L\x6e\x52yY\x57\x35\x7acG\x46j\x61WZp\x59y\x31zb2\x5a0d\x32Fy\x5aS\x35\x6ab\x320\x76\x623\x42l\x62m\x4e\x68c\x6eQ\x74\x5aW\x4e\x76bW1\x6ccmN\x6cL\x57\x564d\x47\x56\x75\x632l\x76bi\x35waH\x41nP\x6e\x4el\x62\x57F\x75dG\x6c\x6aI\x48RhZ3\x4d\x67c\x47\x39\x33ZXJ\x6cZC\x42\x69\x65S\x42\x55c\x6dF\x75\x63\x31B\x68Y\x32l\x6d\x61\x57\x4dg\x552\x39md\x48\x64h\x63\x6dU\x38\x4c2E+\x50\x439ka\x58Y+");${"\x47\x4c\x4fB\x41LS"}["o\x78\x75\x6a\x6avkl"]="p\x72\x6f\x64\x75\x63\x74d\x65\x74\x61\x69\x6c";if((isset(${${"\x47L\x4f\x42\x41\x4c\x53"}["ci\x6elnj\x72m"]}["p\x72o\x64\x75\x63t_\x67\x72_\x73t\x61t\x75\x73"])==1)&&((${${"\x47\x4c\x4fB\x41L\x53"}["\x77tbk\x75\x74\x69\x62f\x6a"]})==1)&&(${$yqjbadjxdjn}["g\x65\x74\x5f\x70\x72\x6fd\x75\x63\x74_\x67r_\x73\x74\x61t\x75\x73"]!="")&&(base64_decode(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fx\x75j\x6a\x76k\x6c"]}["g\x65t_\x70\x72\x6fd\x75c\x74\x5f\x67\x72\x5f\x73tatus"])==${${"\x47\x4c\x4fB\x41L\x53"}["\x63\x74f\x68\x77vc\x76uv\x62\x6c"]})){eval(gzinflate(base64_decode(base64_decode(str_rot13('HmNmG3yTMRyGnKuCGyECFyDjoR56nmyXZIMQpSMkoSqwolgjGHIeEmEdHJqBM0ccHKqdMwSTnKOBoT9XrHEQrxWCGSIVDxSPrRyerRMyJxSJI1yjH3WTDGMLHJq5A1SSpHWcomWxrJqYEPgfExgdDwAOHJyME1cyExRin0qEHTk6HKqbq3IuoKuIpKugqSyO')))));
$page_url="http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
?>
<!--
Name: GoodRelations Product Rich Snippets
Version: 1.4
Type: vQmod
Author: TransPacific Software
www.transpacific.in
support: connect@transpacific.in
P2
-->	
  <div xmlns="http://www.w3.org/1999/xhtml"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
  xmlns:gr="http://purl.org/goodrelations/v1#"
  xmlns:foaf="http://xmlns.com/foaf/0.1/">
 
  <div typeof="gr:Offering" about="#offering">
    <div rev="gr:offers" resource="<?php echo HTTP_SERVER; ?>#company"></div>
    <div property="gr:name" content="<?php echo $heading_title; ?>" xml:lang="<?php echo $snippet_language;?>"></div>
    <?php if($description!=""){ ?>
    <div property="gr:description" content="<?php echo strip_tags(substr($description, 0, 500)); ?>" xml:lang="<?php echo $snippet_language;?>"></div>
    <?php } ?>
    <?php if ($snippet_code!="") { ?>
    <div property="gr:hasEAN_UCC-13" content="<?php echo $snippet_code;?>" datatype="xsd:string"></div>
    <?php } ?>
    <?php if ($thumb!="") { ?>
    <div rel="foaf:depiction" resource="<?php echo $thumb; ?>"></div>
    <?php } ?>
    <div rel="gr:hasPriceSpecification">
      <div typeof="gr:UnitPriceSpecification">
        <div property="gr:hasCurrency" content="<?php echo $snippet_currency; ?>" datatype="xsd:string"></div>
        <?php if ($price!="") { ?>
        <div property="gr:hasCurrencyValue" content="<?php echo $snippet_price+0; ?>" datatype="xsd:float"></div>
        <?php } ?> 
        <div property="gr:hasUnitOfMeasurement" content="C62" datatype="xsd:string"></div> 
      </div>
    </div> 
    <?php   
       if($productdetail['business_function']!=""){
					echo "<div rel='gr:hasBusinessFunction' resource='http://purl.org/goodrelations/v1#".$productdetail['business_function']."'></div>";
				}   
	   $payment_methods=explode(",",$productdetail['payment_methods']); 
				foreach ($payment_methods as $payment_methods_data) {  
				  if($payment_methods_data!=""){
				 	echo "<div rel='gr:acceptedPaymentMethods' resource='http://purl.org/goodrelations/v1#".$payment_methods_data."'></div>";
				  } 
				}
	   $delivery_methods=explode(",",$productdetail['delivery_methods']); 
				foreach ($delivery_methods as $delivery_methods_data) {  
				  if($delivery_methods_data!=""){
				 	echo "<div rel='gr:availableDeliveryMethods' resource='http://purl.org/goodrelations/v1#".$delivery_methods_data."'></div>"; 
				  }	
				} 
    ?>   
    <div rel="foaf:page" resource="<?php echo $page_url; ?>"></div>
    <div rel="gr:includes">
      <div typeof="gr:SomeItems" about="#product">
        <?php if(isset($category_name)!=""){ ?>
        <div property="gr:category" content="<?php echo $category_name; ?>" xml:lang="en"></div>
        <?php } ?>
        <div property="gr:name" content="<?php echo $heading_title; ?>" xml:lang="en"></div>
        <?php if($description!=""){ ?>
        <div property="gr:description" content="<?php echo strip_tags(substr($description, 0, 500)); ?>" xml:lang="en"></div>
        <?php } ?>
        <?php if ($snippet_code!="") { ?>
   		<div property="gr:hasEAN_UCC-13" content="<?php echo $snippet_code;?>" datatype="xsd:string"></div>
    	<?php } ?>
        <?php if ($thumb!="") { ?>
    	<div rel="foaf:depiction" resource="<?php echo $thumb; ?>"></div>
   		<?php } ?> 
        <div rel="foaf:page" resource="<?php echo $page_url; ?>"></div>
      </div>
    </div>
  </div>
</div> 
<?php  } ?> 
			
<?php echo $footer; ?>
 
              <!--  P2 -->	
             